<%-- 
    Document   : index
    Author     : José Manuel Sánchez Bernabéu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <link href="estilos.css" rel="stylesheet" type="text/css">
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>ProyectoCisco0809</title>
        <SCRIPT LANGUAGE="JavaScript1.2">
            function foco()
            {
                if(document.entrada)
                {
                    document.entrada.usuario.focus();
                }
            }
            
            // Funcion de envio de datos
            function valida_entrada()
            {
                if(document.entrada.usuario.value=="" || document.entrada.password.value=="")
                {
                        alert('Rellena todos los campos');
                        return 0;
                }
                // Hacemos el submit
                document.entrada.submit();
            }
        </SCRIPT>
    </head>
    <body onload="foco()">
        <form action="controlAcceso.jsp" method="post" name="entrada">
            <table style="font-size:24px;border-spacing:0px;border-collapse:collapse" width="100%">
                <tbody>
                    <tr>
                        <th align="left" style="border-bottom-width:2px;border-bottom-style:double">Gestión remota routers Cisco</th>
                        <th style="border-bottom-width:2px;border-bottom-style:double"> <img src="images/logo2.gif" align="right"> </th>
                    </tr>
                </tbody>
            </table>
            <br/>
            <br/>
            <table align="center">
               <tbody>
                <tr><th colspan="3" align="left" style="font-size:14px;font-style:normal;color:white;background-color:silver">Log in</th></tr>
                <tr>
                    <td colspan="3"> Usuario: <br/>
                        <input type="text" name="usuario" size="40">
                    </td>
                </tr>
                <tr>
                    <td colspan="3"> Contraseña: <br/>
                        <input type="password" name="password" size="40"> &nbsp; &nbsp;&nbsp;&nbsp;
                        <input type="button" value="Log in" onclick="valida_entrada()"></input>
                    </td>
                </tr>
               </tbody>
            </table>
            <br/>
            <br/>
            <table style="font-size:24px;border-spacing:0px;border-collapse:collapse" width="100%">
                <tbody>
                    <tr>
                        <th colspan="2" style="border-bottom-width:2px;border-bottom-style:double"></th>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
